<seed-content class="gray-background">
  <seed-toolbar-header>
    <seed-toolbar-title>身体数据</seed-toolbar-title>
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>

  <seed-default-graph *ngIf="!childBodyDataList.length"></seed-default-graph>
  <div class="top-des" *ngIf="childBodyDataList.length">以下为{{studentName}}的最新身体数据</div>
  <div class="grow-up-content">
    <ul *ngIf="childBodyDataList.length">
      <li class="grow-up-list-item" *ngFor="let item of childBodyDataList"
          [routerLink]="['/train/parent/grow-up', studentId, item.bodyDataCategoryVO?.categoryId]">
        <div class="item-left">
          <img [src]="getIcon(item.bodyDataCategoryVO?.iconUrl)" alt="">
          <span>{{item.bodyDataCategoryVO?.categoryName}}</span>
        </div>
        <div class="item-right">
          <span class="value">{{item.bodyData?.dataValue}}{{item.bodyDataCategoryVO?.unitName}}</span>
          <img [src]="getIcon('icon_training_right_s@2x.png')" alt="">
        </div>
      </li>
    </ul>
  </div>
</seed-content>
